<%--
  Created by IntelliJ IDEA.
  User: koizumisinya
  Date: 2017/12/07
  Time: 18:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setAttribute("aaa", "request");
    pageContext.setAttribute("aaa", "pageContext");
    session.setAttribute("aaa", "session");
    application.setAttribute("aaa", "application");
%>

<%--会根据域的范围从最小往上查找 --%>
${aaa}<br/>

<%--指定域的范围查找 --%>
${pageScope.aaa}<br/>
${requestScope.aaa}<br/>
${sessionScope.aaa}<br/>
${applicationScope.aaa}<br/>
</body>
</html>
